package club.justwill.single.persistence.document;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by luoyu on 2/22/16.
 */
@Document(collection = "user_advice")
public class UserAdvice extends  MongoDocument {
    @Field("user_id")
    @Indexed(name="user_advice_user_id")
    private long userId;

    @Field("phone_number")
    private String phoneNumber;

    @Field("user_name")
    private String userName;

    @Field("type")
    private int type;

    @Field("content")
    private String content;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
